//
//  KZTableHeaderVIew.m
//  xiaorizi
//
//  Created by kun on 15/10/25.
//  Copyright © 2015年 origin. All rights reserved.
//

#import "KZTableHeaderVIew.h"
#import "Masonry.h"

@implementation KZTableHeaderVIew

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


+(KZTableHeaderVIew *)tableHeaderView
{
    NSString *className = NSStringFromClass([self class]);
    return [[[NSBundle mainBundle]loadNibNamed:className owner:self options:nil]lastObject];
}

//制定约束实现
-(void)willMoveToSuperview:(UIView *)newSuperview
{
    [self mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@(0));
        make.left.equalTo(@(0));
        make.right.equalTo(@(0));
        make.bottom.equalTo(@(0));
    }];
}

@end
